package com.zixuan.sina.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import com.zixuan.sina.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<User> {
   List<String> getRoles(@Param("userId") String userId);

    User findUserById(@Param("userId") String userId);
}
